//
//  ChooseMaterialCell.m
//  Estate
//
//  Created by wangdongdong on 16/7/21.
//  Copyright © 2016年 ttsx. All rights reserved.
//

#import "ChooseMaterialCell.h"

@implementation ChooseMaterialCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


// 隐蔽
- (IBAction)ybButton:(UIButton *)sender {
    if (sender.selected) {
        [sender setSelected:NO];
        self.ybBlock(@"");
    } else {
        [sender setSelected:YES];
        self.ybBlock(sender.titleLabel.text);
    }
}

// 检验
- (IBAction)jyButton:(UIButton *)sender {
    if (sender.selected) {
        [sender setSelected:NO];
        self.jyBlock(@"");
    } else {
        [sender setSelected:YES];
        self.jyBlock(sender.titleLabel.text);
    }
}

// 分项
- (IBAction)fxButton:(UIButton *)sender {
    if (sender.selected) {
        [sender setSelected:NO];
        self.fxBlock(@"");
    } else {
        [sender setSelected:YES];
        self.fxBlock(sender.titleLabel.text);
    }
}

// 施工
- (IBAction)sgButton:(UIButton *)sender {
    if (sender.selected) {
        [sender setSelected:NO];
        self.sgBlock(@"");
    } else {
        [sender setSelected:YES];
        self.sgBlock(sender.titleLabel.text);
    }
}

// 其他
- (IBAction)otherButton:(UIButton *)sender {
    if (sender.selected) {
        [sender setSelected:NO];
        self.otherBlock(@"");
    } else {
        [sender setSelected:YES];
        self.otherBlock(sender.titleLabel.text);
    }
}
@end
